package com.client.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
@RequestMapping
public class IndexController {
    @GetMapping("/")
    public String index(Principal principal){
        return "client hello " + principal.getName();
    }
}
